import request from '@/utils/request'

// 创建团的计划
export function add(data) {
  return request({
    url: '/admin/factordata/project/add',
    method: 'post',
    data
  })
}

// 获取收入对账列表
export function getList(params) {
  return request({
    url: '/admin/foundation/budget/income/lists',
    method: 'get',
    params
  })
}
// 批量核对或者取消核对
export function batchCheck(data) {
  return request({
    url: '/admin/foundation/budget/income/changestatus',
    method: 'post',
    data
  })
}

// 编辑
export function edit(data) {
  return request({
    url: '/admin/factordata/project/edit',
    method: 'post',
    data
  })
}

// 批量创建
export function adds(data) {
  return request({
    url: '/admin/factordata/project/batadd',
    method: 'post',
    data
  })
}

// 删除
export function remove(data) {
  return request({
    url: '/admin/factordata/project/del',
    method: 'post',
    data
  })
}

// 设置状态
export function setStatus(data) {
  return request({
    url: '/admin/factordata/project/setstatus',
    method: 'post',
    data
  })
}

// 获取详情
export function getDetail(params) {
  return request({
    url: '/admin/factordata/project/detail',
    method: 'get',
    params
  })
}
